import java.util.Scanner;

public class day230422 {
    // 因子个数
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int n = sc.nextInt();
            int count = 0;
            for (int i = 2; i * i <= n; i++) {
                if (n % i == 0) {
                    // 找到一个因子
                    while (n % i == 0) {
                        n /= i;
                    }
                    count++;
                }
            }
            if (n != 1) {
                // 没被除完, 是素数
                count++;
            }
            System.out.println(count);
        }
    }

    // 最难的问题
    public static void main1(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            char[] str = sc.nextLine().toCharArray();
            StringBuilder sb = new StringBuilder();
            boolean flag = false;
            for (int i = 0; i < str.length; i++) {
                if (str[i] == '<' || str[i] == '>') {
                    flag = !flag;
                }
                if (flag){
                    sb.append(str[i]);
                } else if (Character.isLetter(str[i])) {
                    char tmp = (char)((str[i] - 5 - 65 + 26) % 26 + 65);
                    sb.append(tmp);
                } else {
                    sb.append(str[i]);
                }
            }
            System.out.println(sb);
        }
    }
}
